package org.jupiter.blog.api.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
public class JupiterUrlResourceDTO extends PageRequestDTO {

	private String uuid;

	@NotBlank(message = "URL不能为空")
	@Size(max = 255, message = "URL不能超过255个字符")
	private String url;

	@NotBlank(message = "请求方法不能为空")
	@Size(max = 20, message = "请求方法不能超过20个字符")
	private String method;

	@Size(max = 500, message = "描述不能超过500个字符")
	private String description;

	@Size(max = 128, message = "模块键不能超过128个字符")
	private String module;

	private LocalDateTime createTime;

	private LocalDateTime updateTime;

	private LocalDateTime deleteTime;
}
